package cn.hfjava.kz.mapper;

import cn.hfjava.kz.entity.po.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86177
* @description 针对表【permissions(权限表)】的数据库操作Mapper
* @createDate 2024-07-10 10:07:02
* @Entity cn.hfjava.kz.entity.po.Permission
*/
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {


    List<Permission> getMenuPermsByUserId(@Param("userId") Integer userId);

    List<Permission> getPermissionsByRoleId(Integer roleId);
}




